package com.example.chat.model;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @Description
 * @Date 2022/11/17 0:01
 * @Author pq
 */
@Entity
@Table(name = "VDOA007_PERMISSION")
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@DynamicInsert
@DynamicUpdate
@NoArgsConstructor
public class Permission extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 4733593171859530314L;
    @Id
    @Column(name = "DOA007_ID", length = 50)
    private String id;

    /**
     * 权限名称
     */
    @Column(name = "DOA007_NAME", length = 50)
    private String name;

    @Column(name = "DOA007_CODE")
    private String code;

    /**
     * 是否已删除
     */
    @Column(name = "DOA007_DELETED")
    private Boolean deleted = false;

    /**
     * 是否展示
     */
    @Column(name = "DOA007_SHOW")
    private Boolean show = true;
}
